<?php
class BaseException extends Exception implements JsonSerializable{
	public function __construct($message,$code){
		
		parent::__construct($message,$code);
	}

	public function jsonSerialize(){
		return [
            'status'=> [
                'Code' => $this->getCode(),
                'message' => $this->getMessage()
            ]
        ];
	}
}
?>